#ifndef QMYFinNal_H
#define QMYFinNal_H

#include "qmybasewidget.h"
#include "ui_qmyFinNal.h"
#include "qFinNalvnes.h"
#include "qFinNalkorekcija.h"
#include "qFinNallista.h"

class QMyFinNal : public QMyBaseWidget
{
	Q_OBJECT

public:
	QMyFinNal(QWidget *parent = 0);
	~QMyFinNal();
	void sendPrintMessage();
    QStandardItemModel* getModel();
    QStandardItemModel* getModel2();
    QStringList getIspratnicaInfo();
	virtual void refresh();
    bool printTovarenList();
	bool printMalaIspratnica();
;

private:
	Ui::QMyFinNalClass ui;
	QFinNalVnes *FinNalVnes;
	QFinNalKorekcija *FinNalKorekcija;
	QFinNalLista *FinNalLista;
	int m_row;

protected:
	virtual void pressF2();
	virtual void pressF3();
	virtual void pressF4();
	virtual void pressEscape();
	void closeAllForm();
signals:
	void signCloseMyWidget();
	void signKomintentiFromIspratnica(QWidget*, QString);
	void signArtikliFromIspratnica(QWidget*, QString);
	void signKontoListaFromNalog(QWidget*, QString);
	void eupdateNanigator(QWidget*, QWidget*);
	void signPrint();
	void disablePrint(bool);

	void signIzlezniFakturi(QWidget*, QString);
	void signPriemnici(QWidget*, QString);
	void signVlezniFakturi(QWidget*, QString);
	void signIspratnici(QWidget*, QString);
	void signNalogProizvodstvo(QWidget*, QString);
	void signKalkulacija(QWidget*, QString);
	
public slots:
	void closeWLista();
    void procF2();
    void procF3();
    void procDel();
	void closeW();
    void closeW1();
	void retPriemnicaToKalkulacija(QString& text, QString& textName);
	void callKomintenti(QWidget* myobj, QString text);
	void callArtikli(QWidget* myobj, QString text);
	void callKontoLista(QWidget* myobj, QString text);

	void callIzlezniFakturi(QWidget* myobj, QString text);
	void callPriemnici(QWidget* myobj, QString text);
	void callVlezniFakturi(QWidget* myobj, QString text);
	void callIspratnici(QWidget* myobj, QString text);
	void callNalogProizvodstvo(QWidget* myobj, QString text);
	void callKalkulacija(QWidget* myobj, QString text);
};

#endif // QMYFinNal_H
